package com.pingan.haofang.searchcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

import com.pingan.haofang.gov.toolkit.annotation.EnableCommonBizToolKit;
import com.pingan.haofang.gov.toolkit.autoconfigure.ToolkitEnum;

@ServletComponentScan(basePackages = {"com.pingan.haofang"})
@SpringBootApplication(scanBasePackages = {"com.pingan.haofang"})
@EnableJpaRepositories (basePackages = {"com.pingan.haofang"})
@EntityScan(basePackages = {"com.pingan.haofang"})
@EnableScheduling
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 43200, redisNamespace = "search_cloud_light")
@EnableCommonBizToolKit(includeToolkit= {ToolkitEnum.SMS,ToolkitEnum.IDENTIFY})
public class SearchCloudWebApplication {
 
    public static void main(String[] args) {
        SpringApplication.run(SearchCloudWebApplication.class, args);
    }

}
